module.exports = {
  // plugins: ['autobar'],
  plugins: ['permalink-pinyin', ['autobar', {'pinyinNav': true}]],
  title: 'liberal2016-docs',
  description: 'Welcome to my docs',
  head: [
    [
      'link',
      {
        rel: 'icon',
        href: '/img/rty-docs.ico'
      }
    ],
    [
      'meta',
      {
        name: 'keywords',
        content:
          'liberal'
      }
    ],
    [
      'script',
      {
        async: 'async',
        src: 'https://www.googletagmanager.com/gtag/js?id=UA-145250139-1'
      }
    ],
    [
      'script',
      {},
      `window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'UA-145250139-1');`
    ],
    //百度统计
    [
      'script',
      {},
      `var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?96bef00c01d8ee7ee249abc380b9e5ab";
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(hm, s);
      })();`
    ]
  ],
  themeConfig: {
    lastUpdated: 'Last Updated',
    //编辑
    repo: 'https://gitee.com/liberal2016/doc.git',
    docsDir: 'docs',
    docsBranch: 'master',
    editLinks: true,
    //编辑
    sidebarDepth: 3,
    nav: [
    ],
    sidebar: {
    }
  }
}

